package com.ruoyi.system.service.mongo;

import com.github.pagehelper.PageInfo;
import com.ruoyi.system.domain.mongodb.AllSchool;
import com.ruoyi.system.domain.mongodb.Klasses;
import com.ruoyi.system.domain.mongodb.Schools;

import java.util.List;

/**
 * @author yangtao
 * @since 2021-02-24 11:28
 */
public interface AllSchoolService {
    public List<AllSchool> selectSchoolByCode(String eareCode);

    /**
     * 根据学校ID查询班级列表
     * @param schoolId
     * @return
     */
    public List<Klasses> selectClassList(String schoolId);

    int save(Schools schools);

    PageInfo<Schools> selecSchoolPage(String schoolName, String eareCode,Integer pageNum, Integer pageSize);

    void deleteSchoolById(String id);

    Integer updateSchool(String schoolId, String schoolName,String eareCode);
}
